package com.qf.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qf.entity.Goods;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class OrdersDto {
    private Integer id;
    private String no;
    private Double goodPrice;//总价格
    private Integer num;
    private Integer status;//状态，是否支付等
    private Integer appraiseStatus;//评价
    private String userName;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date payTime;
    private Integer userId;
    private String goodId;
    private String goodImg;
    private String goodTitle;
    private String oaddress;//地址
    private List<Goods> goods;//一个订单号的所有商品

    public OrdersDto(Integer id, String no, Double goodPrice, Integer num, Integer status, Integer appraiseStatus, String userName, Date createTime, Date payTime, Integer userId, String goodId, String goodImg, String goodTitle, String oaddress, List<Goods> goods) {
        this.id = id;
        this.no = no;
        this.goodPrice = goodPrice;
        this.num = num;
        this.status = status;
        this.appraiseStatus = appraiseStatus;
        this.userName = userName;
        this.createTime = createTime;
        this.payTime = payTime;
        this.userId = userId;
        this.goodId = goodId;
        this.goodImg = goodImg;
        this.goodTitle = goodTitle;
        this.oaddress = oaddress;
        this.goods = goods;
    }

    public OrdersDto() {
    }

    @Override
    public String toString() {
        return "OrdersDto{" +
                "id=" + id +
                ", no='" + no + '\'' +
                ", goodPrice=" + goodPrice +
                ", num=" + num +
                ", status=" + status +
                ", appraiseStatus=" + appraiseStatus +
                ", userName='" + userName + '\'' +
                ", createTime=" + createTime +
                ", payTime=" + payTime +
                ", userId=" + userId +
                ", goodId='" + goodId + '\'' +
                ", goodImg='" + goodImg + '\'' +
                ", goodTitle='" + goodTitle + '\'' +
                ", oaddress='" + oaddress + '\'' +
                ", goods=" + goods +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public Double getGoodPrice() {
        return goodPrice;
    }

    public void setGoodPrice(Double goodPrice) {
        this.goodPrice = goodPrice;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getAppraiseStatus() {
        return appraiseStatus;
    }

    public void setAppraiseStatus(Integer appraiseStatus) {
        this.appraiseStatus = appraiseStatus;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getGoodId() {
        return goodId;
    }

    public void setGoodId(String goodId) {
        this.goodId = goodId;
    }

    public String getGoodImg() {
        return goodImg;
    }

    public void setGoodImg(String goodImg) {
        this.goodImg = goodImg;
    }

    public String getGoodTitle() {
        return goodTitle;
    }

    public void setGoodTitle(String goodTitle) {
        this.goodTitle = goodTitle;
    }

    public String getOaddress() {
        return oaddress;
    }

    public void setOaddress(String oaddress) {
        this.oaddress = oaddress;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }
}
